home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
arttour.dir
/
00227_Script_Demo Pause scripts
< prev
next >
Wrap
Text File
|
1996-06-20
|
2KB
|
91 lines
on startMovie
setAuxiliarySearch
global gPaused, gContinued, PauseSprite
set PauseSprite = 44
set gPaused = FALSE
set gContinued = FALSE
end
on exitTour
goBack
end
-----------------------------
on checkPassClick
global gPaused, gContinued, PauseSprite
if gPaused then
if the clickon = PauseSprite then
continueDemo
end if
else if gContinued then
if the clickon = PauseSprite then
pauseDemo
end if
end if
end
-----------------------------
on pauseDemo
global pauseSprite, gPaused
set the puppet of sprite pauseSprite = TRUE
set the castnum of sprite pauseSprite = the number of cast "ContinueButton"
updatestage
set gPaused = TRUE
set gContinued = FALSE
pause
end
on continueDemo
global pauseSprite, gPaused
set the puppet of sprite pauseSprite = TRUE
set the castnum of sprite pauseSprite = the number of cast "PauseButton"
updatestage
set gPaused = FALSE
set gContinued = TRUE
continue
end
-- -----------------------------------------------------------
-- Handler waitSoundDemo
-- for use by demo, which can be paused, and doesn't processFrame
on waitSoundDemo soundChannel
repeat while (not (the mouseDown)) and soundBusy(soundChannel)
updateStage
checkPassClick
end repeat
end
-- -----------------------------------------------------------
-- Handler waitVideoDemo just waits for a video
-- for use by demo, which can be paused, and doesn't processFrame
on waitVideoDemo whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
updatestage
checkPassClick
end repeat
end
-- -----------------------------------------------------------
-- Handler prepareVideoDemo
on prepareVideoDemo whichSprite
set the movierate of sprite whichsprite = 0
set the movieTime of sprite whichSprite to 0
end
-- Handler PreloadToDemo
on PreloadToDemo whichFrame, interruptFlag
preloadTo whichFrame, 0
end